import request from '@/utils/request'

// 登录接口地址
export const loginApi = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})

// 获取登录用户信息
export const userInfoApi = () => request({
  url: '/sys/profile',
  method: 'POST'
})

// 根据用户id获取用户信息
export const userInfoByid = id => request({
  url: `/sys/user/${id}`
})
